@import "video_table.css";
main {
  margin: 0 auto;
  font-weight: 500;
  min-width: 1200px;
  max-width: 1200px;
  .wrap {
    background-color: #FFF;
    padding: 24px;
    border-radius: 3px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.06);
  }
}
.con-title {
  margin-top: 80px;
  text-align: center;
  margin-bottom: 40px;
  h1 {
    font-size: 32px;
  }
  h3 {
    margin-top: 32px;
    color: #606266;
    font-size: 16px;
  }
}
.data-item {
  text-align: center;
}
.toktoker-detail {
  display: flex;
  align-items: center;
  .avatar {
    position: relative;
    img {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      display: block;
    }
    .iconfont {
      position: absolute;
      bottom: 0;
      right: 0;
      font-size: 12px;
      padding: 2px;
      color: #FFF;
      background-color: #46D6EC;
      border-radius: 50%;
    }
  }
  .tiktoker-info {
    flex: 1;
    margin-left: 18px;
    div {
      color: #909399;
      font-size: 1.167rem;
      &:first-child {
        display: flex;
        margin-bottom: 6px;
        align-items: center;
        font-size: 1.333rem;
        color: #303133;
        .iconfont {
          font-size: 1.167rem;
        }
      }
      &:last-child {
        margin-top: 6px;
      }
    }
  }
  .other-sns {
    display: flex;
    img {
      cursor: pointer;
      margin-left: 12px;
      height: 14px;
      width: 14px;
      display: block;
      border-radius: 2px;
    }
  }
  .tiktoker-data {
    display: flex;
    .data-item {
      font-weight: 500;
      margin-right: 40px;
      &:last-child {
        margin-right: 0;

      }
      &:first-child {
        .data-num {
          color: #F56C6C;
        }
      }
      .data-label {
        color: #606266;
        font-size: 1.167rem;
      }
      .data-num {
        margin-top: 13px;
        font-size: 2rem;
        color: #303133;
      }
    }
  }
}
.sign {
  color: #606266;
  font-size: 1.167rem;
  padding-top: 16px;
}
.tiktoker-rank {
  margin-top: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #EEE;
  div {
    border: 1px solid #EEE;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 158px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #606266;
    .iconfont {
      font-size: 16px;
      margin-right: 8px;
    }
    span {
      font-family: 'Oswald', sans-serif;
      margin-left: 6px;
      color: #303133;
      font-size: 16px;
      line-height: 16px;
    }
    &.global-rank {
      .iconfont {
        color: #1890FF;
      }
    }
  }
}
.tiktoker-data-avg {
  display: flex;
  margin-top: 24px;
  .data-item {
    width: 20%;
    font-size: 1.167rem;
    .data-label {
      color: #606266;
    }
    .data-num {
      margin-top: 16px;
      color: #303133;
    }
  }
}
.update-time {
  margin-top: 24px;
  border-top: 1px solid #EEE;
  color: #909399;
  font-weight: 400;
  line-height: 16px;
  font-size: 14px;
  text-align: center;
  padding-top: 16px;
}
.wrap-tab {
  padding: 24px;
  margin-top: 24px;
  .tab {
    margin-top: 0;
    justify-content: start;
    .tab-item {
      cursor: pointer;
      color: #606266;
      font-size: 1.167rem;
      padding-bottom: 13px;
      margin-right: 40px;
      &.is-active {
        border-bottom: 2px solid #1890FF;
        color: #1890FF;
      }
    }
  }
  .line {
    margin-bottom: 24px;
    height: 1px;
    width: 100%;
    background-color: #EEE;
  }
  .top {
    display: flex;
    padding-bottom: 24px;
    .sort-tab {
      display: flex;
      cursor: pointer;
      &.right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        div {
          padding: 8px 10px;
          font-size: 12px;
        }
      }
      div {
        border: 1px solid #DCDFE6;
        padding: 8px 14px;
        font-size: 13px;
        line-height: 1;
        color: #303133;
        &:first-child {
          border-radius: 4px 0 0 4px;
        }
        &:last-child {
          border-radius: 0 4px 4px 0;
        }
        &.is-active {
          color: #1890FF;
          background: #E6F3FF;
          border: 1px solid #1890FF;
        }
      }
    }
  }
  .demo {
    position: relative;
    & > img {
      width: 100%;
    }
    .overflow {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 100%;
      background-color: rgba(255,255,255,.85);
      font-weight: 500;
      button {
        width: 133px;
        font-weight: 500;
        padding: 11px 0;
        font-size: 14px;
        &:first-child {
          margin-right: 12px;
        }
      }
      .overflow-title {
        margin-top: 150px;
        font-size: 16px;
        color: #303133;
        text-align: center;
      }
      .btn-row {
        border-radius: 3px;
        padding: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
    .tips {
      margin-top: 24px;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      padding: 16px 24px;
      border: 1px solid #1890FF;
      border-radius: 4px;
      background: rgba(24, 144, 255, 0.05);
      .title {
        flex: 1;
        font-size: 14px;
        line-height: 21px;
        color: #606266;
        font-weight: 500;
      }
      button {
        padding: 11px 22px;
      }
    }
  }
  .chart-item {
    font-weight: 500;
    position: relative;
    &:first-child {
      .chart-wrap {
        li {
          padding-top: 43px;
          padding-bottom: 43px;
        }
      }
    }
    &:last-child {
      .chart-wrap {
        li {
          padding-top: 16px;
          padding-bottom: 16px;
        }
      }
    }
    .title {
      margin-top: 32px;
      font-size: 16px;
      color: #303133;
      display: flex;
      .sub-title {
        font-size: 14px;
        margin-left: auto;
        ul {
          display: flex;
          li {
            cursor: pointer;
            &.is-active {
              color: #1890FF;
            }
            &:nth-child(2) {
              margin: 0 6px;
            }
          }
        }
      }
    }
    .chart-wrap {
      padding: 24px;
      border: 1px solid #EEE;
      border-radius: 4px;
      margin-top: 16px;
      display: flex;
      ul {
        display: flex;
        flex-direction: column;
      }
      li {
        cursor: pointer;
        flex: 1;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #606266;
        border-right: 2px solid #EEE;
        padding-right: 16px;
        &:first-child {
          border-top-left-radius: 2px;
          border-top-right-radius: 2px;
        }
        &:last-child {
          border-bottom-left-radius: 2px;
          border-bottom-right-radius: 2px;
        }
        &.is-active {
          border-right-color: #1890FF;
          color: #1890FF;
        }
      }
      .chart-con {
        flex: 1;
      }
    }
  }
  .tab-con {
    position: relative;
  }
  .tab-con-0 {
    margin-bottom: 24px;
    .wrap-card {
      display: grid;
      grid-template-columns: repeat(5, 205px);
      grid-template-rows: repeat(2, 273px);
      gap: 31px;
      border-bottom: 1px solid #EBEEF5;
      padding-bottom: 32px;
      .card-item {
        position: relative;
        img {
          width: 205px;
          height: 273px;
          border-radius: 4px;
        }
        .bottom {
          color: #FFF;
          display: flex;
          align-items: center;
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          background: rgba(0, 0, 0, 0.5);
          padding: 8px 0;
          padding-left: 12px;
          border-radius: 0 0 4px 4px;
          .iconfont {
            margin-right: 4px;
          }
        }
      }
    }
    .wrap-table {
      display: none;
      border-top: 1px solid #EBEEF5;
    }
    .permission-tips {
      margin-top: 24px;
      font-size: 14px;
      text-align: center;
      span {
        cursor: pointer;
        color: #1890FF;
      }
    }
    .card-more {
      margin-top: 24px;
      text-align: center;
      color: #1890FF;
      font-size: 16px;
    }
  }
  .tab-con-1 {
    display: none;
    min-height: 500px;
    .tab-group {
      margin-bottom: 24px;
    }
    #data-exm {
      display: none;
    }
    .chart-con {
      margin-left: 26px;
      width: 1000px;
      height: 200px;
    }
    .chart-item {
      .title {
        margin-top: 32px;
        font-size: 16px;
        color: #303133;
        display: flex;

        .sub-title {
          font-size: 14px;
          margin-left: auto;

          ul {
            display: flex;

            li {
              cursor: pointer;

              &:nth-child(2) {
                margin: 0 6px;
              }

              &.is-active {
                color: #1890FF;
              }
            }
          }
        }
      }
      .chart-tooltip {
        display: flex;
        align-items: center;
        img {
          margin-right: 6px;
          border-radius: 4px;
          width: 64px;
          height: 64px;
        }
      }
      .tooltip-top {
        width: 200px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }
    }
    .data-wrap {
      .data-table {
        padding: 24px;
        border: 1px solid #EEEEEE;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        table {
          &:first-child {
            padding-bottom: 24px;
            margin-bottom: 24px;
            border-bottom: 1px solid #EEE;
          }
        }
        tr {
          border-bottom: none;
        }
        th {
          font-weight: 500;
          padding: 0;
          color: #606266;
          border-bottom: none;
        }
        td {
          border-bottom: none;
          padding-top: 16px;
          padding-bottom: 0;
          text-align: center;
          color: #303133;
          line-height: 16px;
        }
      }
      .data-item {
        display: flex;
        align-items: center;
        justify-content: center;
        & > div {
          display: flex;
        }
        .growth {
          line-height: 1;
          margin-left: 6px;
          display: flex;
          align-items: center;
          .iconfont {
            font-size: 12px;
          }
          span {
            margin-left: 6px;
          }
          &.up {
            color: #67C23A;
            span {
              transform: rotate(-90deg);
            }
          }
          &.down {
            color: #F56C6C;
            span {
              transform: rotate(90deg);
            }
          }
        }
      }
    }
  }
  .tab-con-2 {
    display: none;
    .data-wrap {
      display: grid;
      grid-template-columns: repeat(2, 564px);
      grid-template-rows: 379px 339px 352px;
      gap: 32px 24px;
    }
    .chart-item {
      display: flex;
      flex-direction: column;
      .title {
        margin-top: 0;
      }
      .chart-wrap {
        flex: 1;
      }
    }
    .chart-con {
      width: 514px;
      position: relative;
      &#genderChart {
        .center {
          position: absolute;
          top: 50%;
          left: 50%;
          display: flex;
          transform: translate(-50%, -50%);
          font-size: 12px;
          line-height: 14px;
          font-weight: 400;
        }
        .item {
          margin-left: 20px;
          display: flex;
          align-items: center;
          flex-direction: column;
          &:first-child {
            margin-left: 0;
          }
          .iconfont {
            margin-bottom: 6px;
            font-size: 24px;
            line-height: 1;
            &.iconsingle-female2 {
              color: #F56C6C;
            }
            &.iconsingle-male1 {
              color: #3AA0FF;
            }
          }
        }
      }
    }
    .region-item {
      font-size: 14px;
      font-weight: 500;
      color: #606266;
      margin-bottom: 24px;
      &:first-child {
        margin-top: 8px;
      }
      &:last-child {
        margin-bottom: 8px;
      }
      .label {
        display: flex;
        .left {
          flex: 1;
        }
      }
    }
    .pie-item {
      text-align: center;
      .pie-tx {
        margin-top: 16px;
        font-size: 14px;
        color: #303133;
      }
      &:nth-child(1) {
        .loop-pie-rm {
          border-bottom:8px solid #3AA0FF;
          border-right:8px solid #3AA0FF;
        }
        .loop-pie-lm {
          border-bottom:8px solid #3AA0FF;
          border-right:8px solid #3AA0FF;
        }
      }
      &:nth-child(2) {
        .loop-pie-rm {
          border-bottom:8px solid #F56C6C;
          border-right:8px solid #F56C6C;
        }
        .loop-pie-lm {
          border-bottom:8px solid #F56C6C;
          border-right:8px solid #F56C6C;
        }
      }
      &:nth-child(3) {
        .loop-pie-rm {
          border-bottom:8px solid #FFBD5A;
          border-right:8px solid #FFBD5A;
        }
        .loop-pie-lm {
          border-bottom:8px solid #FFBD5A;
          border-right:8px solid #FFBD5A;
        }
      }
      &:nth-child(4) {
        .loop-pie-rm {
          border-bottom:8px solid #8267F1;
          border-right:8px solid #8267F1;
        }
        .loop-pie-lm {
          border-bottom:8px solid #8267F1;
          border-right:8px solid #8267F1;
        }
      }
      &:nth-child(5) {
        .loop-pie-rm {
          border-bottom:8px solid #1FDBBE;
          border-right:8px solid #1FDBBE;
        }
        .loop-pie-lm {
          border-bottom:8px solid #1FDBBE;
          border-right:8px solid #1FDBBE;
        }
      }
    }
  }
  .tab-con-3 {
    display: none;
    .first-row {
      display: flex;
      .chart-item {
        .chart-con {
          width: 516px;
        }
        &:first-child {
          margin-right: 24px;
        }
        .title {
          margin-top: 0;
        }
      }
    }
    .table-wrap {
      margin-top: 16px;
      border-radius: 6px;
      border: 1px solid #DCDFE6;
      td {
        text-align: center;
      }
      th {
        &:first-child {
          padding-left: 24px;
          text-align: left;
        }
      }
      tbody {
        td {
          &:first-child {
            padding-left: 24px;
          }
        }
        tr {
          &:last-child {
            border-bottom: none;
            td {
              border-bottom: none;
            }
          }
        }
      }
      .sound-info {
        display: flex;
        img {
          margin-right: 12px;
        }
        & > div {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: flex-start;
          color: #303133;
          div {
            &:last-child {
              color: #909399;
              margin-top: 6px;
            }
          }
        }
      }
      .mentioned-info {
        display: flex;
        .avatar {
          position: relative;
          img {
            margin-right: 10px;
            border-radius: 50%;
            display: block;
            width: 48px;
            height: 48px;
          }
          .iconfont {
            color: #FFF;
            background-color: #46D6EC;
            font-size: 12px;
            padding: 2px;
            border-radius: 50%;
            position: absolute;
            right: 0;
            bottom: 0;
          }
        }
        & > div {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: flex-start;
          color: #303133;
          div {
            &:first-child {
              line-height: 1;
              margin-bottom: 6px;
            }
            &:last-child {
              color: #909399;
            }
          }
        }
      }
      .performance {
        font-size: 14px;
        line-height: 20px;
        span {
          padding: 2px 10px;
          border-radius: 4px;
        }
        .success {
          color: rgba(103, 194, 58, 1);
          background-color: rgba(103, 194, 58, .2);
        }
        .info {
          color: rgba(24, 144, 255, 1);
          background-color: rgba(24, 144, 255, .2);
        }
        .error {
          color: rgba(245, 108, 108, 1);
          background-color: rgba(245, 108, 108, .2);
        }
      }
    }
  }
  .pagination {
    text-align: center;
    .layui-box {
      margin-top: 24px;
      & > a {
        margin-left: 10px;
        width: 30px;
        border-radius: 2px;
        padding: 4px 0;
        font-size: 14px;
        line-height: 22px;
        height: auto;
        background-color: #C0C4CC;
        color: #FFF !important;
        border: none;
        &:first-child {
          margin-left: 0;
          max-height: 30px;
        }
      }
      .layui-laypage-curr {
        border-radius: 2px;
        margin-left: 10px;
        font-size: 14px;
        line-height: 22px;
        width: 30px;
        padding: 4px 0;
        height: auto;
        .layui-laypage-em {
          background-color: #1890FF;
          padding: 0;
          left: 0;
          top: 0;
        }
      }
    }
  }
}
.wrap-more {
  text-align: center;
  margin-bottom: 60px;
  h2 {
    margin: 42px 0;
    color: #303133;
    font-size: 1.667rem;
  }
  .tiktoker-list {
    display: grid;
    grid-template-columns: repeat(5, 214px);
    grid-column-gap: 32px;
    grid-row-gap: 32px;
    .tiktoker-item {
      height: 204px;
      padding: 24px 16px;
      &:hover {
        transform: scale(1.05);
        box-shadow: 0 0 8px 0 rgba(24, 144, 255, 0.5);
      }
      .item-user {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 24px;
        border-bottom: 1px solid #EEE;
        img {
          display: block;
          margin-bottom: 15px;
          height: 64px;
          width: 64px;
          border-radius: 50%;
        }
        .user-name {
          color: #303133;
          font-size: 1.333rem;
          margin-bottom: 6px;
        }
        .user-id {
          color: #909399;
          font-size: 1.167rem;
        }
      }
      .item-data {
        margin-top: 24px;
        display: flex;
        & > div {
          width: 50%;
          text-align: center;
          &:first-child {
            border-right: 1px solid #EEE;
          }
          .item-label {
            color: #606266;
            font-size: 1.167rem;
          }
          .item-num {
            margin-top: 10px;
            color: #303133;
            font-size: 1.333rem;
          }
        }
      }
    }
  }
}
.wrap-link {
  text-align: center;
  display: flex;
  justify-content: center;
}
.modal-body {
  line-height: 28px;
  .tips {
    position: relative;
    line-height: 1;
    margin-top: 16px;
    display: flex;
    align-items: center;
  }
  input {
    margin-right: 8px;
  }
}
.modal-footer {
  margin-bottom: 12px;
}
.progress {
  background-color: #EBEEF5;
  border-radius: 4px;
  height: 8px;
  .progress-bar {
    margin-top: 10px;
    border-radius: 4px;
    height: 8px;
  }
}
.loop-pie {
  position:relative;
  width:84px;
  height:84px;
  margin:9px;
  .pie-num {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .loop-pie-line {
    position:absolute;
    width:50%;
    height:100%;
    top:0;
    overflow:hidden;
  }
  .loop-pie-l {
    top:0;
    left:0;
  }
  .loop-pie-r {
    top:0;
    -webkit-transform:rotate(180deg);
    right:0
  }
  .loop-pie-c {
    width:200%;
    height:100%;
    border:8px solid transparent;
    border-radius:50%;
    position:absolute;
    box-sizing:border-box;
    top:0;
    -webkit-transform:rotate(-45deg);
    border-top:8px solid #EBEEF5;
    border-left:8px solid #EBEEF5;
  }
}
